<template>
    <van-cell :title="data.options.label">
        <van-switch-cell
            v-model="data.options.defaultValue"
            :disabled="data.options.disabled"
            :active-color="data.options.color"
            :size="data.options.size+'px'"
            :title="data.name" />
    </van-cell>
</template>
<script>
import { Switch, SwitchCell, Cell } from 'vant'
export default {
    name: 'FormSelect',
    components: {
        [Switch.name]: Switch,
        [SwitchCell.name]: SwitchCell,
        [Cell.name]: Cell
    },
    props: {
        data: {
            type: Object
        }
    }
}
</script>
